package com.sptpc.demo.service;

import com.sptpc.demo.model.Order;
import org.springframework.data.domain.Example;
import org.springframework.web.bind.annotation.GetMapping;

public class Orderservice {
   @Override
    public  List<Order> getOrdersByCustomer(String customer);{
    Order order= new Orderr();
    order.seetCustomer(customer);
    order.setState(1);
    Example<Order> example = Example.of();
    return orderRepository.findAll(example);
}
}
